//
//  HealthyDetailViewController.m
//  HonlivApp
//
//  Created by admin on 2017/6/26.
//  Copyright © 2017年 honliv. All rights reserved.
//

#import "HealthyDetailViewController.h"

@interface HealthyDetailViewController ()

@end

@implementation HealthyDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"体检结果";
}
-(void)getRequestURL{
    self.user = User.currentUser;
    [self loadRequestURL:^(GetURL handler) {
        self.viewModel = [[DetailViewModel alloc] init];
        NSDictionary *gidDic = @{@"user_name":self.user.username,@"user_id":self.user.userId,@"SqlNo":@"1",@"peId":_info.healthyId,@"peVisitId":_info.visitId};
        [self.viewModel getGidWithDic:gidDic Success:^(NSString *gid) {
            NSString *requestURL = [NSString stringWithFormat:@"%@Gid=%@&peId=%@&peVisitId=%@",detail_healthy_url,gid,_info.healthyId,_info.visitId];
            handler(requestURL);
        }];
    }];
}


@end
